#include <math.h>

#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
  int n;
  cin >> n;
  int h = pow(2, n);
  int w = h * 2;
  vector<string> matrix(h, string(w, ' '));
    auto draw = [&](auto& self, int x, int y, int h, int w) {
    if (h == 2) {
      matrix[x][y + 1] = matrix[x + 1][y] = '/';
      matrix[x][y + 2] = matrix[x + 1][y + 3] = '\\';
      matrix[x + 1][y + 1] = matrix[x + 1][y + 2] = '_';
      return;
    }
    int hh = h / 2;
    int hw = w / 2;
    self(self, x, y + hw / 2, hh, hw);
    self(self, x + hh, y, hh, hw);
    self(self, x + hh, y + hw, hh, hw);
  };

  draw(draw, 0, 0, h, w);
  for (auto& line : matrix) {
    cout << line << endl;
  }
}